<?php
// admin模块中间件定义文件
return [
    // 别名或分组
    'alias'    => [
        //判断用户是否登录
        'checkLogin' => \app\admin\middleware\Checkuserlogin::class,
        //获取用户权限
        'getPower' => \app\admin\middleware\Power::class,
        //全局日志
        'writeLog' => \app\admin\middleware\Writelog::class,
        //用户可操作权限
        'action' => \app\admin\middleware\Actionuser::class,
    ],

    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => ['action', 'checkLogin', 'getPower', 'writeLog'],
];
